treeview: fix dragging of columns in mutter
authorMatthias Clasen <mclasen@redhat.com>
Tue, 12 Nov 2013 03:53:12 +0000 (22:53 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 Nov 2013 04:17:14 +0000 (23:17 -0500)
Don't recurse the mainloop in _gtk_tree_view_column_start_drag().
It doesn't serve any discernible purpose, and recursing the
mainloop from the flush-events phas of the frame clock breaks
frame synchronization with mutter.

https://bugzilla.gnome.org/show_bug.cgi?id=705176

gtk/gtktreeview.c

index 2ee1bb74b629148d15b178a0705f71acc23d7b6b..8826ba1721b4d9c8f7dcacdfed12907696caa129 100644 (file)
@@ -9926,8 +9926,6 @@ _gtk_tree_view_column_start_drag (GtkTreeView       *tree_view,
   gdk_window_show (tree_view->priv->drag_window);
 
   gtk_widget_grab_focus (GTK_WIDGET (tree_view));
-  while (gtk_events_pending ())
-    gtk_main_iteration ();
 
   tree_view->priv->in_column_drag = TRUE;